﻿namespace Algoritmia.Problems.Fibonacci
{
    public class RecursiveFibonacciNumbers : IFibonacciNumbers
    {
        #region Implementation of IFibonacciNumbers

        public int Number(int n)
        {
            if (n <= 1)
                return n;
            return Number(n - 1) + Number(n - 2);
        }

        #endregion
    }
}
